<template>
  <div class="block">
    <div class="nav">
      <div class="banxin">
        <div class="h1"></div>
        <div class="navTitle">
          <div class="shouye" @click="home">首页</div>
          <div class="shouye" @click="lygl"> 旅游攻略</div>
          <div class="shouye">推荐景区</div>
          <div class="shouye">特产美食</div>
          <div class="shouye">热门资讯</div>
          <div class="shouye">联系我们</div>
        </div>
      </div>
    </div>
    <router-view></router-view>
    <!-- 轮播 -->
    <!-- <Swiper></Swiper> -->
  </div>
</template>

<script>
export default {
    components:{
    // Swiper
  },
  methods:{
    lygl(){
      this.$router.push('/luyougonglue')
    },
    home(){
      this.$router.push('/home').catch(()=>{})
    }
  }

};
</script>

<style>
.block {
  position: relative;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  background-color: #fff;
}

/* 导航 */
.block .nav {
  width: 1200px;
  height: 88px;
  background: rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  z-index: 1000;
  margin: 0 auto;
}
.block .nav .banxin {
  width: 1200px;
  margin: 0 auto;
  /* height: 100px; */
  background-color: red;
}
.block .nav .banxin .h1 {
  width: 322px;
  height: 73px;
  background: url(http://qiniu.image.citgroup.cn/hebei/zhangjiakou/h1logo.png);
  position: absolute;
  top: 6px;
  margin-right: 292px;
  float: left;
}
.block .nav .banxin .navTitle {
  /* background: pink; */
  height: 100%;
  width: 585px;
  /* position: absolute; */
  /* left: 815px; */
  display: flex;
  justify-content: space-around;
  line-height: 88px;
  font-size: 18px;
  font-family: Source Han Sans CN;
  font-weight: 300;
  color: #ffffff;
  float: right;
}
.block .nav .banxin .navTitle .shouye {
  width: 72px;
  height: 88px;
}
.block .nav .banxin .navTitle .shouye:hover {
  width: 72px;
  height: 88px;
  background: rgba(0, 0, 0, 0.3);
}
</style>